#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
    //close(1);
    int fd = open("bite.txt", O_CREAT | O_WRONLY, 0644);
    if(fd < 0){
        perror("open");
        return 1;
    }
    
    char* str = "i like linux.\n";
    write(1, str, strlen(str));
    
    close(fd);
    return 0;
}
